Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional dmi testing for duplicates and quantity #3867

Merged
merged 20 commits into from
Jul 24, 2023

Conversation

Drulikar
Copy link
Contributor

@Drulikar Drulikar commented Jul 11, 2023

About the pull request

This PR adds additional lints for dmi files: duplicate state names and a check if the count of states exceeds 512. (My first attempt at this was to modify the missing_icons unit test, but the icon_states proc ignores duplicate states.)

Let me know if you would like the items_left/righthand files balanced more or if theres anything I may have missed. We don't currently have unit testing for on_mob icons due to how many just simply don't have icons.

Explain why it's good for the game

Helps prevent accidental errors in DMI files that might otherwise get overlooked, and finishes the work that was started in #3895 .

Testing Photographs and Procedure

Screenshots & Videos

image
image

Changelog

🆑 Drathek
code: Added additional lints to dmi/test.py to test for duplicate state names and excessive quantity and added another type path to the missing_icons unit_test.
imageadd: Renamed and moved some icons around to comply with new testing.
/:cl:

@github-actions github-actions bot added Github We don't really know what else this belongs to Code Improvement Make the code longer labels Jul 11, 2023
@Drulikar Drulikar changed the title Experimental: Additional dmitool testing Experimental: Additional dmi testing Jul 12, 2023
@Drulikar Drulikar added the Sprites Remove the soul from the game. label Jul 18, 2023
@Drulikar Drulikar changed the title Experimental: Additional dmi testing Additional dmi testing for duplicates and quantity Jul 18, 2023
@Drulikar Drulikar marked this pull request as ready for review July 18, 2023 02:13
@Drulikar
Copy link
Contributor Author

Linter should pass now once github is sorted out.

@Drulikar Drulikar requested a review from a team July 18, 2023 20:54
@cm13-github cm13-github added the Merge Conflict PR can't be merged because it touched too much code label Jul 19, 2023
@cm13-github cm13-github removed the Merge Conflict PR can't be merged because it touched too much code label Jul 19, 2023
@harryob harryob added this pull request to the merge queue Jul 24, 2023
Merged via the queue into cmss13-devs:master with commit 7b8ccd4 Jul 24, 2023
github-actions bot added a commit that referenced this pull request Jul 24, 2023
cm13-github added a commit that referenced this pull request Jul 24, 2023
@Drulikar Drulikar deleted the Experimental_DMI_Lint branch July 24, 2023 23:45
@Zonespace27 Zonespace27 added the Unit Tests Keep the game broken, forcefully. label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Make the code longer Github We don't really know what else this belongs to Sprites Remove the soul from the game. Unit Tests Keep the game broken, forcefully.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants